#include "UdpServer.hpp"

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cerr << "Usage: " << argv[0] << " serverport" << std::endl;
        exit(USAGE_ERROR);
    }
    
    uint16_t serverport = std::stoi(argv[1]);

    ENABLE_CONSOLE_LOG();
    std::unique_ptr<UdpServer> udp = std::make_unique<UdpServer>(serverport);
    udp->InitUdpServer();
    udp->Start();
    return 0;
}
